<?php

namespace App\Modules\Admin\Entities\Mall;

use App\Models\Model;

class GoodsRuleModel extends Model
{

    protected $table='goods_rule';
    protected $primaryKey='id';


    public function updateGoodsRule($goods_id,$update)
    {
        return $this->where(['goods_id'=>$goods_id])->update($update);
    }
    public function createGoodsRule($data)
    {
        return $this->create($data);
    }

}

